package com.jyh.blog.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyh.blog.dto.TagBackDTO;
import com.jyh.blog.entity.Tag;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Tag)表数据库访问层
 *
 * @author jyh
 * @since 2023-01-14 13:12:42
 */
@Repository
public interface TagDao extends BaseMapper<Tag> {
    //查找后端标签
    List<TagBackDTO> tagListBack(@Param("current") Long current, @Param("size") Long size, @Param("keywords") String keywords);

    List<String> tagNameByArticleId(@Param("articleId") String articleId);

}

